/*
 * Copyright (C) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

/**
\file
\brief Describes the information about common error codes.
*/
/* add include here */
#ifndef __HI_UNF_MPI_ERRORCODE_H__
#define __HI_UNF_MPI_ERRORCODE_H__

#ifdef __cplusplus
#if __cplusplus
extern "C"
{
#endif
#endif /* End of #ifdef __cplusplus */

/***************************** Macro Definition ******************************/
/* \addtogroup      MSP_ERRCODE */
/* @{ */  /* <!-- MSP_ERRCODE */

/* Define DISP Error Code */
#define HI_ERR_DISP_DEV_NOT_EXIST                   (HI_S32)(0x80100001)
#define HI_ERR_DISP_NOT_DEV_FILE                    (HI_S32)(0x80100002)
#define HI_ERR_DISP_DEV_OPEN_ERR                    (HI_S32)(0x80100003)
#define HI_ERR_DISP_DEV_CLOSE_ERR                   (HI_S32)(0x80100004)
#define HI_ERR_DISP_NULL_PTR                        (HI_S32)(0x80100005)
#define HI_ERR_DISP_NO_INIT                         (HI_S32)(0x80100006)
#define HI_ERR_DISP_INVALID_PARA                    (HI_S32)(0x80100007)
#define HI_ERR_DISP_CREATE_ERR                      (HI_S32)(0x80100008)
#define HI_ERR_DISP_DESTROY_ERR                     (HI_S32)(0x80100009)
#define HI_ERR_DISP_NOT_EXIST                       (HI_S32)(0x8010000A)
#define HI_ERR_DISP_INVALID_OPT                     (HI_S32)(0x8010000B)
#define HI_ERR_DISP_NOT_SUPPORT_FMT                 (HI_S32)(0x8010000C)
#define HI_ERR_DISP_NOT_OPEN                        (HI_S32)(0x8010000D)
#define HI_ERR_DISP_SRC_UNAVAILABLE                 (HI_S32)(0x8010000E)
#define HI_ERR_DISP_NOT_SUPPORT                     (HI_S32)(0x8010000F)
#define HI_ERR_DISP_MALLOC_FAILED                   (HI_S32)(0x80100010)
#define HI_ERR_DISP_UNKNOWN                         (HI_S32)(0x801000FF)
#define HI_ERR_DISP_TIMEOUT                         (HI_S32)(0x801000F1)
/* Define VO Error Code */
#define HI_ERR_VO_DEV_NOT_EXIST                     (HI_S32)(0x80110001)
#define HI_ERR_VO_NOT_DEV_FILE                      (HI_S32)(0x80110002)
#define HI_ERR_VO_DEV_OPEN_ERR                      (HI_S32)(0x80110003)
#define HI_ERR_VO_DEV_CLOSE_ERR                     (HI_S32)(0x80110004)
#define HI_ERR_VO_NULL_PTR                          (HI_S32)(0x80110005)
#define HI_ERR_VO_NO_INIT                           (HI_S32)(0x80110006)
#define HI_ERR_VO_INVALID_PARA                      (HI_S32)(0x80110007)
#define HI_ERR_VO_CREATE_ERR                        (HI_S32)(0x80110008)
#define HI_ERR_VO_DESTROY_ERR                       (HI_S32)(0x80110009)
#define HI_ERR_VO_NOT_EXIST                         (HI_S32)(0x80110010)
#define HI_ERR_VO_INVALID_OPT                       (HI_S32)(0x80110030)
#define HI_ERR_VO_WIN_NOT_EXIST                     (HI_S32)(0x80110040)
#define HI_ERR_VO_WIN_NOT_ENABLE                    (HI_S32)(0x80110041)
#define HI_ERR_VO_WIN_UNSUPPORT                     (HI_S32)(0x80110042)
#define HI_ERR_VO_TIMEOUT                           (HI_S32)(0x80110043)
#define HI_ERR_VO_OPERATION_DENIED                  (HI_S32)(0x80110044)
#define HI_ERR_VO_SLAVE_WIN_LOST                    (HI_S32)(0x80110045)
#define HI_ERR_VO_FRAME_INFO_ERROR                  (HI_S32)(0x80110046)
#define HI_ERR_VO_FRAME_RELEASE_FAILED              (HI_S32)(0x80110047)
#define HI_ERR_VO_NO_FRAME_TO_RELEASE               (HI_S32)(0x80110048)
#define HI_ERR_VO_ADD_PROC_ERR                      (HI_S32)(0x80110049)
#define HI_ERR_VO_MALLOC_FAILED                     (HI_S32)(0x80110050)
#define HI_ERR_VO_DEPEND_DEVICE_NOT_READY           (HI_S32)(0x80110051)
#define HI_ERR_VO_BUFQUE_FULL                       (HI_S32)(0x80110052)
#define HI_ERR_VO_NO_SOURCE                         (HI_S32)(0x80110053)
/* Define VPSS Error Code */
#define HI_ERR_VPSS_DEV_OPEN_ERR                    (HI_S32)(0x80110080)
#define HI_ERR_VPSS_DEV_CLOSE_ERR                   (HI_S32)(0x80110081)
#define HI_ERR_VPSS_NULL_PTR                        (HI_S32)(0x80110082)
#define HI_ERR_VPSS_NO_INIT                         (HI_S32)(0x80110083)
#define HI_ERR_VPSS_INVALID_PARA                    (HI_S32)(0x80110084)
#define HI_ERR_VPSS_CREATE_ERR                      (HI_S32)(0x80110085)
#define HI_ERR_VPSS_DESTROY_ERR                     (HI_S32)(0x80110086)
#define HI_ERR_VPSS_INVALID_OPT                     (HI_S32)(0x80110087)
#define HI_ERR_VPSS_INST_NOT_EXIST                  (HI_S32)(0x80110088)
#define HI_ERR_VPSS_PORT_NOT_EXIST                  (HI_S32)(0x80110089)
#define HI_ERR_VPSS_FRAME_INFO_ERROR                (HI_S32)(0x80110090)
#define HI_ERR_VPSS_MALLOC_FAILED                   (HI_S32)(0x80110091)
/* Define VDEC Error Code */
#define HI_ERR_VDEC_NOT_OPEN                        (HI_S32)(0x80120001)
#define HI_ERR_VDEC_INVALID_PARA                    (HI_S32)(0x80120002)
#define HI_ERR_VDEC_NULL_PTR                        (HI_S32)(0x80120003)
#define HI_ERR_VDEC_NOT_SUPPORT                     (HI_S32)(0x80120004)
#define HI_ERR_VDEC_TIMEOUT                         (HI_S32)(0x80120005)
#define HI_ERR_VDEC_MALLOC_FAILED                   (HI_S32)(0x80120044)
#define HI_ERR_VDEC_CREATECH_FAILED                 (HI_S32)(0x80120047)
#define HI_ERR_VDEC_DESTROYCH_FAILED                (HI_S32)(0x80120048)
#define HI_ERR_VDEC_INVALID_CHANID                  (HI_S32)(0x80120049)
#define HI_ERR_VDEC_RESETCH_FAILED                  (HI_S32)(0x80120050)
#define HI_ERR_VDEC_SETATTR_FAILED                  (HI_S32)(0x80120051)
#define HI_ERR_VDEC_GETATTR_FAILED                  (HI_S32)(0x80120052)
#define HI_ERR_VDEC_SENDSTREAM_FAILED               (HI_S32)(0x80120053)
#define HI_ERR_VDEC_RECEIVE_FAILED                  (HI_S32)(0x80120054)
#define HI_ERR_VDEC_DISCARD_PRIDATA                 (HI_S32)(0x80120055)
#define HI_ERR_VDEC_RELEASEFRAME_FAILED             (HI_S32)(0x80120056)
#define HI_ERR_VDEC_RELEASEPRI_FAILED               (HI_S32)(0x80120057)
#define HI_ERR_VDEC_NOT_INIT                        (HI_S32)(0x80120059)
#define HI_ERR_VDEC_USERCOPY_ERR                    (HI_S32)(0x8012005A)
#define HI_ERR_VDEC_LIST_EMPTY                      (HI_S32)(0x8012005B)
#define HI_ERR_VDEC_INVALID_STATE                   (HI_S32)(0x8012005C)
#define HI_ERR_VDEC_NOT_ENABLE                      (HI_S32)(0x80120060)
#define HI_ERR_VDEC_BUFFER_NOT_ATTACH               (HI_S32)(0x80120061)
#define HI_ERR_VDEC_BUFFER_REQUIRE_INVALID          (HI_S32)(0x80120062)
#define HI_ERR_VDEC_BUFFER_ATTACHED                 (HI_S32)(0x80120063)
#define HI_ERR_VDEC_BUFFER_FULL                     (HI_S32)(0x80120064)
/* Define AO Error Code */
#define HI_ERR_AO_NOT_INIT                          (HI_S32)(0x80130001)
#define HI_ERR_AO_INVALID_PARA                      (HI_S32)(0x80130002)
#define HI_ERR_AO_NULL_PTR                          (HI_S32)(0x80130003)
#define HI_ERR_AO_INVALID_ID                        (HI_S32)(0x80130004)
#define HI_ERR_AO_USED                              (HI_S32)(0x80130005)
#define HI_ERR_AO_NOTSUPPORT                        (HI_S32)(0x80130006)
#define HI_ERR_AO_USERCOPY_ERR                      (HI_S32)(0x80130007)
#define HI_ERR_AO_SOUND_NOT_OPEN                    (HI_S32)(0x80130008)
#define HI_ERR_AO_DEV_NOT_OPEN                      (HI_S32)(0x80130041)
#define HI_ERR_AO_CREATE_FAIL                       (HI_S32)(0x80130042)
#define HI_ERR_AO_OUT_BUF_FULL                      (HI_S32)(0x80130046)
#define HI_ERR_AO_INVALID_OUTFRAME                  (HI_S32)(0x80130047)
#define HI_ERR_AO_DATASIZE_EXCEED                   (HI_S32)(0x80130048)
#define HI_ERR_AO_INVALID_INFRAME                   (HI_S32)(0x80130049)
#define HI_ERR_AO_INBUF_EMPTY                       (HI_S32)(0x8013004a)
#define HI_ERR_AO_INVALID_PORT                      (HI_S32)(0x8013004c)
#define HI_ERR_AO_SENDMUTE                          (HI_S32)(0x8013004d)
#define HI_ERR_AO_VIRTUALBUF_EMPTY                  (HI_S32)(0x8013004e)
#define HI_ERR_AO_PAUSE_STATE                       (HI_S32)(0x8013004f)
#define HI_ERR_AO_OUTPORT_NOT_ATTATCH               (HI_S32)(0x80130050)
#define HI_ERR_AO_CAST_TIMEOUT                      (HI_S32)(0x80130051)
#define HI_ERR_AO_MALLOC_FAILED                     (HI_S32)(0x80130052)
#define HI_ERR_AO_DEVICE_BUSY                       (HI_S32)(0x80130053)
#define HI_ERR_AO_NOT_ACTIVED                       (HI_S32)(0x80130054)
/* Define ADEC Error Code */
#define HI_ERR_ADEC_DEV_NOT_OPEN                    (HI_S32)(0x80140001)
#define HI_ERR_ADEC_INVALID_PARA                    (HI_S32)(0x80140002)
#define HI_ERR_ADEC_NULL_PTR                        (HI_S32)(0x80140003)
#define HI_ERR_ADEC_IN_BUF_FULL                     (HI_S32)(0x80140004)
#define HI_ERR_ADEC_OUT_BUF_EMPTY                   (HI_S32)(0x80140005)
#define HI_ERR_ADEC_OUT_VOLUME                      (HI_S32)(0x80140006)
#define HI_ERR_ADEC_IN_PTSBUF_FULL                  (HI_S32)(0x80140007)
#define HI_ERR_ADEC_NOT_INIT                        (HI_S32)(0x80140008)
#define HI_ERR_ADEC_INSUFFICIENT_RESOURCES          (HI_S32)(0x80140009)
#define HI_ERR_ADEC_MALLOC_FAILED                   (HI_S32)(0x8014000a)
#define HI_ERR_ADEC_USERCOPY_ERR                    (HI_S32)(0x8014000b)
#define HI_ERR_ADEC_UNSUPPORT                       (HI_S32)(0x8014000c)

/* Define DMX Error Code */
#define HI_ERR_DMX_NOT_INIT                         (HI_S32)(0x80150001)
#define HI_ERR_DMX_INVALID_PARA                     (HI_S32)(0x80150002)
#define HI_ERR_DMX_NULL_PTR                         (HI_S32)(0x80150003)
#define HI_ERR_DMX_NOT_SUPPORT                      (HI_S32)(0x80150004)
#define HI_ERR_DMX_TIMEOUT                          (HI_S32)(0x80150005)
#define HI_ERR_DMX_ALLOC_MEM_FAILED                 (HI_S32)(0x80150006)
#define HI_ERR_DMX_BUSY                             (HI_S32)(0x80150007)
#define HI_ERR_DMX_NOATTACH_PORT                    (HI_S32)(0x80150008)
#define HI_ERR_DMX_ATTACHED_PORT                    (HI_S32)(0x80150009)
#define HI_ERR_DMX_RECREAT_TSBUFFER                 (HI_S32)(0x8015000a)
#define HI_ERR_DMX_UNMATCH_CHAN                     (HI_S32)(0x8015000b)
#define HI_ERR_DMX_NOFREE_CHAN                      (HI_S32)(0x8015000c)
#define HI_ERR_DMX_OPENING_CHAN                     (HI_S32)(0x8015000d)
#define HI_ERR_DMX_NOT_OPEN_CHAN                    (HI_S32)(0x8015000e)
#define HI_ERR_DMX_ATTACHED_FILTER                  (HI_S32)(0x8015000f)
#define HI_ERR_DMX_NOATTACH_FILTER                  (HI_S32)(0x80150010)
#define HI_ERR_DMX_UNMATCH_FILTER                   (HI_S32)(0x80150011)
#define HI_ERR_DMX_NOFREE_FILTER                    (HI_S32)(0x80150012)
#define HI_ERR_DMX_NOATTACH_KEY                     (HI_S32)(0x80150013)
#define HI_ERR_DMX_UNMATCH_KEY                      (HI_S32)(0x80150014)
#define HI_ERR_DMX_NOFREE_KEY                       (HI_S32)(0x80150015)
#define HI_ERR_DMX_ATTACHED_KEY                     (HI_S32)(0x80150016)
#define HI_ERR_DMX_NOAVAILABLE_BUF                  (HI_S32)(0x80150017)
#define HI_ERR_DMX_NOAVAILABLE_DATA                 (HI_S32)(0x80150018)
#define HI_ERR_DMX_REACQUIRE_BUF                    (HI_S32)(0x80150019)
#define HI_ERR_DMX_OCCUPIED_PID                     (HI_S32)(0x80150020)
#define HI_ERR_DMX_MMAP_FAILED                      (HI_S32)(0x80150021)
#define HI_ERR_DMX_MUNMAP_FAILED                    (HI_S32)(0x80150022)
#define HI_ERR_DMX_EMPTY_BUFFER                     (HI_S32)(0x80150023)
#define HI_ERR_DMX_OVERFLOW_BUFFER                  (HI_S32)(0x80150024)
#define HI_ERR_DMX_NOT_START_REC_CHAN               (HI_S32)(0x80150030)
#define HI_ERR_DMX_STARTING_REC_CHAN                (HI_S32)(0x80150031)
#define HI_ERR_DMX_NOAVAILABLE_EXCLUDEPID           (HI_S32)(0x80150032)
#define HI_ERR_DMX_NOAVAILABLE_TAG_PORT             (HI_S32)(0x80150033)
#define HI_ERR_NOT_SUPPORT_TAGDEAL                  (HI_S32)(0x80150034)
#define HI_ERR_DMX_REC_BUFNOTMATCH                  (HI_S32)(0x80150035)
#define HI_ERR_DMX_INVALID_REC_CHAN                 (HI_S32)(0x80150036)
#define HI_ERR_DMX_BUSY_CHAN                        (HI_S32)(0x80150037)
#define HI_ERR_DMX_BUSY_FILTER                      (HI_S32)(0x80150038)
#define HI_ERR_DMX_BUSY_KEY                         (HI_S32)(0x80150039)
#define HI_ERR_DMX_BUSY_REC                         (HI_S32)(0x8015003A)
/* Define VI Error Code */
#define HI_ERR_VI_NO_INIT                           (HI_S32)(0x801A0001)
#define HI_ERR_VI_INVALID_PARA                      (HI_S32)(0x801A0002)
#define HI_ERR_VI_NULL_PTR                          (HI_S32)(0x801A0003)
#define HI_ERR_VI_INVALID_CHNID                     (HI_S32)(0x801A0004)
#define HI_ERR_VI_DEV_OPENED                        (HI_S32)(0x801A0005)
#define HI_ERR_VI_DEV_NOT_EXIST                     (HI_S32)(0x801A0006)
#define HI_ERR_VI_NOT_DEV_FILE                      (HI_S32)(0x801A0007)
#define HI_ERR_VI_NO_CHN_LEFT                       (HI_S32)(0x801A0008)
#define HI_ERR_VI_BUSY                              (HI_S32)(0x801A0009)
#define HI_ERR_VI_CHN_NOT_EXIST                     (HI_S32)(0x801A000A)
#define HI_ERR_VI_CHN_INVALID_OPT                   (HI_S32)(0x801A000B)
#define HI_ERR_VI_CHN_INVALID_STAT                  (HI_S32)(0x801A000C)
#define HI_ERR_VI_CHN_INIT_BUF_ERR                  (HI_S32)(0x801A000D)
#define HI_ERR_VI_BUF_EMPTY                         (HI_S32)(0x801A000E)
#define HI_ERR_VI_BUF_FULL                          (HI_S32)(0x801A000F)
#define HI_ERR_VI_NOT_SUPPORT                       (HI_S32)(0x801A0010)
#define HI_ERR_VI_NOT_STOP                          (HI_S32)(0x801A0011)
#define HI_ERR_VI_NOT_DETACH                        (HI_S32)(0x801A0012)
#define HI_ERR_VI_NOT_CREATE                        (HI_S32)(0x801A0013)
#define HI_ERR_VI_NOT_INIT                          (HI_S32)(0x801A0014)
#define HI_ERR_VI_NOT_ATTACH                        (HI_S32)(0x801A0015)
#define HI_ERR_VI_TIMEOUT                           (HI_S32)(0x801A0020)
#define HI_ERR_VI_ALLOC_FAILED                      (HI_S32)(0x801A0021)
/* Define AI Error Code */
#define HI_ERR_AI_NOT_INIT                          (HI_S32)(0x801B0001)
#define HI_ERR_AI_INVALID_PARA                      (HI_S32)(0x801B0002)
#define HI_ERR_AI_NULL_PTR                          (HI_S32)(0x801B0003)
#define HI_ERR_AI_INVALID_ID                        (HI_S32)(0x801B0004)
#define HI_ERR_AI_DEV_OPENED                        (HI_S32)(0x801B0005)
#define HI_ERR_AI_NOTSUPPORT                        (HI_S32)(0x801B0006)
#define HI_ERR_AI_USERCOPY                          (HI_S32)(0x801B0007)
#define HI_ERR_AI_PARSERBUF_EMPTY                   (HI_S32)(0x801B0008)
#define HI_ERR_AI_NOT_ENOUGH_DATA                   (HI_S32)(0x801B0009)
#define HI_ERR_AI_CANNOT_FINDSYNC                   (HI_S32)(0x801B000a)
#define HI_ERR_AI_BITS_INVALID_DATA                 (HI_S32)(0x801B000b)
#define HI_ERR_AI_INSUFFICIENT_RESOURCES            (HI_S32)(0x801B000c)
#define HI_ERR_AI_INVALID_OPERATE                   (HI_S32)(0x801B000d)
#define HI_ERR_AI_BITS_PAUSE_DATA                   (HI_S32)(0x801B000e)
#define HI_ERR_AI_BUFEMPTY                          (HI_S32)(0x801B000f)

/* Define AENC Error Code */
#define HI_ERR_AENC_DEV_NOT_OPEN                    (HI_S32)(0x801C0001)
#define HI_ERR_AENC_INVALID_PARA                    (HI_S32)(0x801C0002)
#define HI_ERR_AENC_NULL_PTR                        (HI_S32)(0x801C0003)
#define HI_ERR_AENC_OUT_BUF_FULL                    (HI_S32)(0x801C0006)
#define HI_ERR_AENC_INVALID_OUTFRAME                (HI_S32)(0x801C0007)
#define HI_ERR_AENC_DATASIZE_EXCEED                 (HI_S32)(0x801C0008)
#define HI_ERR_AENC_CREATECH_FAIL                   (HI_S32)(0x801C0009)
#define HI_ERR_AENC_IN_BUF_FULL                     (HI_S32)(0x801C000a)
#define HI_ERR_AENC_CH_NOT_OPEN                     (HI_S32)(0x801C000b)
#define HI_ERR_AENC_OUT_BUF_EMPTY                   (HI_S32)(0x801C000c)
#define HI_ERR_AENC_OUT_BUF_BAD                     (HI_S32)(0x801C000d)
#define HI_ERR_AENC_IN_BUF_UNEMPTY                  (HI_S32)(0x801C000e)
#define HI_ERR_AENC_CH_NOT_SUPPORT                  (HI_S32)(0x801C000f)
#define HI_ERR_AENC_INSUFFICIENT_RESOURCES          (HI_S32)(0x801C0010)
#define HI_ERR_AENC_MALLOC_FAILED                   (HI_S32)(0x801C0011)
#define HI_ERR_AENC_USERCOPY_ERR                    (HI_S32)(0x801C0012)
#define HI_ERR_AENC_PROC_NOT_INIT                   (HI_S32)(0x801C0013)
#define HI_ERR_AENC_ADD_PROC_ERR                    (HI_S32)(0x801C0014)

/* Define VENC Error Code */
#define HI_ERR_VENC_NO_INIT                         (HI_S32)(0x801D0001)
#define HI_ERR_VENC_INVALID_PARA                    (HI_S32)(0x801D0002)
#define HI_ERR_VENC_NULL_PTR                        (HI_S32)(0x801D0003)
#define HI_ERR_VENC_INVALID_CHNID                   (HI_S32)(0x801D0004)
#define HI_ERR_VENC_DEV_OPENED                      (HI_S32)(0x801D0005)
#define HI_ERR_VENC_DEV_NOT_EXIST                   (HI_S32)(0x801D0006)
#define HI_ERR_VENC_NOT_DEV_FILE                    (HI_S32)(0x801D0007)
#define HI_ERR_VENC_CREATE_ERR                      (HI_S32)(0x801D0008)
#define HI_ERR_VENC_DESTROY_ERR                     (HI_S32)(0x801D0009)
#define HI_ERR_VENC_CHN_NOT_EXIST                   (HI_S32)(0x801D000A)
#define HI_ERR_VENC_CHN_INVALID_STAT                (HI_S32)(0x801D000B)
#define HI_ERR_VENC_CHN_NO_ATTACH                   (HI_S32)(0x801D000C)
#define HI_ERR_VENC_BUF_EMPTY                       (HI_S32)(0x801D000D)
#define HI_ERR_VENC_CHN_RELEASE_ERR                 (HI_S32)(0x801D000E)
#define HI_ERR_VENC_NOT_SUPPORT                     (HI_S32)(0x801D000F)
/* Define SIO_AI Error Code */
#define HI_ERR_SIO_AI_INVALID_DEVID                 (HI_S32)(0x801E0001)
#define HI_ERR_SIO_AI_INVALID_CHNID                 (HI_S32)(0x801E0002)
#define HI_ERR_SIO_AI_ILLEGAL_PARAM                 (HI_S32)(0x801E0003)
#define HI_ERR_SIO_AI_NULL_PTR                      (HI_S32)(0x801E0004)
#define HI_ERR_SIO_AI_NOT_CONFIG                    (HI_S32)(0x801E0005)
#define HI_ERR_SIO_AI_NOT_SURPPORT                  (HI_S32)(0x801E0006)
#define HI_ERR_SIO_AI_NOT_PERM                      (HI_S32)(0x801E0007)
#define HI_ERR_SIO_AI_NOT_ENABLED                   (HI_S32)(0x801E0008)
#define HI_ERR_SIO_AI_NOMEM                         (HI_S32)(0x801E0009)
#define HI_ERR_SIO_AI_NOBUF                         (HI_S32)(0x801E000A)
#define HI_ERR_SIO_AI_BUF_EMPTY                     (HI_S32)(0x801E000B)
#define HI_ERR_SIO_AI_BUF_FULL                      (HI_S32)(0x801E000C)
#define HI_ERR_SIO_AI_SYS_NOTREADY                  (HI_S32)(0x801E000D)
#define HI_ERR_SIO_AI_BUSY                          (HI_S32)(0x801E000E)
/* Define SIO_AO Error Code */
#define HI_ERR_SIO_AO_INVALID_DEVID                 (HI_S32)(0x801F0001)
#define HI_ERR_SIO_AO_INVALID_CHNID                 (HI_S32)(0x801F0002)
#define HI_ERR_SIO_AO_ILLEGAL_PARAM                 (HI_S32)(0x801F0003)
#define HI_ERR_SIO_AO_NULL_PTR                      (HI_S32)(0x801F0004)
#define HI_ERR_SIO_AO_NOT_CONFIG                    (HI_S32)(0x801F0005)
#define HI_ERR_SIO_AO_NOT_SURPPORT                  (HI_S32)(0x801F0006)
#define HI_ERR_SIO_AO_NOT_PERM                      (HI_S32)(0x801F0007)
#define HI_ERR_SIO_AO_NOT_ENABLED                   (HI_S32)(0x801F0008)
#define HI_ERR_SIO_AO_NOMEM                         (HI_S32)(0x801F0009)
#define HI_ERR_SIO_AO_NOBUF                         (HI_S32)(0x801F000A)
#define HI_ERR_SIO_AO_BUF_EMPTY                     (HI_S32)(0x801F000B)
#define HI_ERR_SIO_AO_BUF_FULL                      (HI_S32)(0x801F000C)
#define HI_ERR_SIO_AO_SYS_NOTREADY                  (HI_S32)(0x801F000D)
#define HI_ERR_SIO_AO_BUSY                          (HI_S32)(0x801F000E)
/* Define AFLT Error Code */
#define HI_ERR_AFLT_NOT_INIT                        (HI_S32)(0x80200001)
#define HI_ERR_AFLT_INVALID_PARA                    (HI_S32)(0x80200002)
#define HI_ERR_AFLT_NULL_PTR                        (HI_S32)(0x80200003)
#define HI_ERR_AFLT_INVALID_HANDLE                  (HI_S32)(0x80200004)
#define HI_ERR_AFLT_CHN_NOT_OPEN                    (HI_S32)(0x80200005)
#define HI_ERR_AFLT_INBUF_FULL                      (HI_S32)(0x80200006)
#define HI_ERR_AFLT_OUTBUF_EMPTY                    (HI_S32)(0x80200007)
#define HI_ERR_AFLT_BUFEMPTY                        (HI_S32)(0x80200008)
/* Define HDMI Error Code */
#define HI_ERR_HDMI_NOT_INIT                        (HI_S32)(0x80210001)
#define HI_ERR_HDMI_INVALID_PARA                    (HI_S32)(0x80210002)
#define HI_ERR_HDMI_NUL_PTR                         (HI_S32)(0x80210003)
#define HI_ERR_HDMI_DEV_NOT_OPEN                    (HI_S32)(0x80210004)
#define HI_ERR_HDMI_DEV_NOT_CONNECT                 (HI_S32)(0x80210005)
#define HI_ERR_HDMI_READ_SINK_FAILED                (HI_S32)(0x80210006)
#define HI_ERR_HDMI_INIT_ALREADY                    (HI_S32)(0x80210007)
#define HI_ERR_HDMI_CALLBACK_ALREADY                (HI_S32)(0x80210008)
#define HI_ERR_HDMI_INVALID_CALLBACK                (HI_S32)(0x80210009)
#define HI_ERR_HDMI_FEATURE_NO_USPPORT              (HI_S32)(0x8021000a)
#define HI_ERR_HDMI_BUS_BUSY                        (HI_S32)(0x8021000b)
/* Define SIF Error Code */
#define HI_ERR_SIF_NOT_INIT                         (HI_S32)(0x80220001)
#define HI_ERR_SIF_INVALID_PARA                     (HI_S32)(0x80220002)
#define HI_ERR_SIF_NULL_PTR                         (HI_S32)(0x80220003)
#define HI_ERR_SIF_INVALID_ID                       (HI_S32)(0x80220004)
#define HI_ERR_SIF_DEV_OPENED                       (HI_S32)(0x80220005)
#define HI_ERR_SIF_DEV_CLOSED                       (HI_S32)(0x80220006)
#define HI_ERR_SIF_NOTSUPPORT                       (HI_S32)(0x80220007)
#define HI_ERR_SIF_INSUFFICIENT_RESOURCES           (HI_S32)(0x80220008)
#define HI_ERR_SIF_INVALID_OPERATE                  (HI_S32)(0x80220009)
#define HI_ERR_SIF_NOT_START                        (HI_S32)(0x8022000a)
#define HI_ERR_SIF_NOT_OPEN                         (HI_S32)(0x8022000b)
#define HI_ERR_SIF_NOT_STOP                         (HI_S32)(0x8022000c)
#define HI_ERR_SIF_USERCOPY                         (HI_S32)(0x8022000d)
#define HI_ERR_SIF_DEVICE_BUSY                      (HI_S32)(0x8022000e)
#define HI_ERR_SIF_TIMEOUT                          (HI_S32)(0x8022000f)
#define HI_ERR_SIF_MMAP_FAILED                      (HI_S32)(0x80220010)
/* Define PVR Error Code */
#define HI_ERR_PVR_NOT_INIT                         (HI_S32)(0x80300001)
#define HI_ERR_PVR_INVALID_PARA                     (HI_S32)(0x80300002)
#define HI_ERR_PVR_NUL_PTR                          (HI_S32)(0x80300003)
#define HI_ERR_PVR_CHN_NOT_INIT                     (HI_S32)(0x80300004)
#define HI_ERR_PVR_INVALID_CHNID                    (HI_S32)(0x80300005)
#define HI_ERR_PVR_NO_CHN_LEFT                      (HI_S32)(0x80300006)
#define HI_ERR_PVR_ALREADY                          (HI_S32)(0x80300007)
#define HI_ERR_PVR_BUSY                             (HI_S32)(0x80300008)
#define HI_ERR_PVR_NO_MEM                           (HI_S32)(0x80300009)
#define HI_ERR_PVR_NOT_SUPPORT                      (HI_S32)(0x8030000A)
#define HI_ERR_PVR_RETRY                            (HI_S32)(0x8030000B)
#define HI_ERR_PVR_FILE_EXIST                       (HI_S32)(0x80300011)
#define HI_ERR_PVR_FILE_NOT_EXIST                   (HI_S32)(0x80300012)
#define HI_ERR_PVR_FILE_CANT_OPEN                   (HI_S32)(0x80300013)
#define HI_ERR_PVR_FILE_CANT_CLOSE                  (HI_S32)(0x80300014)
#define HI_ERR_PVR_FILE_CANT_SEEK                   (HI_S32)(0x80300015)
#define HI_ERR_PVR_FILE_CANT_WRITE                  (HI_S32)(0x80300016)
#define HI_ERR_PVR_FILE_CANT_READ                   (HI_S32)(0x80300017)
#define HI_ERR_PVR_FILE_INVALID_FNAME               (HI_S32)(0x80300018)
#define HI_ERR_PVR_FILE_TILL_START                  (HI_S32)(0x80300019)
#define HI_ERR_PVR_FILE_TILL_END                    (HI_S32)(0x8030001A)
#define HI_ERR_PVR_FILE_DISC_FULL                   (HI_S32)(0x8030001B)
#define HI_ERR_PVR_REC_INVALID_STATE                (HI_S32)(0x80300021)
#define HI_ERR_PVR_REC_INVALID_DMXID                (HI_S32)(0x80300022)
#define HI_ERR_PVR_REC_INVALID_FSIZE                (HI_S32)(0x80300023)
#define HI_ERR_PVR_REC_INVALID_UDSIZE               (HI_S32)(0x80300024)
#define HI_ERR_PVR_PLAY_INVALID_STATE               (HI_S32)(0x80300031)
#define HI_ERR_PVR_PLAY_INVALID_DMXID               (HI_S32)(0x80300032)
#define HI_ERR_PVR_PLAY_INVALID_TSBUFFER            (HI_S32)(0x80300033)
#define HI_ERR_PVR_PLAY_INVALID_PACKETBUFFER        (HI_S32)(0x80300034)
#define HI_ERR_PVR_PLAY_INDEX_BEYOND_TS             (HI_S32)(0x80300035)

#define HI_ERR_PVR_INDEX_CANT_MKIDX                 (HI_S32)(0x80300041)
#define HI_ERR_PVR_INDEX_FORMAT_ERR                 (HI_S32)(0x80300042)
#define HI_ERR_PVR_INDEX_DATA_ERR                   (HI_S32)(0x80300043)
#define HI_ERR_PVR_INDEX_INVALID_ENTRY              (HI_S32)(0x80300044)
#define HI_ERR_PVR_INTF_EVENT_INVAL                 (HI_S32)(0x80300051)
#define HI_ERR_PVR_INTF_EVENT_NOREG                 (HI_S32)(0x80300052)
/* Define AVPLAY Error Code */
#define HI_ERR_AVPLAY_DEV_NOT_EXIST                 (HI_S32)(0x80310001)
#define HI_ERR_AVPLAY_NOT_DEV_FILE                  (HI_S32)(0x80310002)
#define HI_ERR_AVPLAY_DEV_OPEN_ERR                  (HI_S32)(0x80310003)
#define HI_ERR_AVPLAY_DEV_CLOSE_ERR                 (HI_S32)(0x80310004)
#define HI_ERR_AVPLAY_NULL_PTR                      (HI_S32)(0x80310005)
#define HI_ERR_AVPLAY_DEV_NO_INIT                   (HI_S32)(0x80310006)
#define HI_ERR_AVPLAY_INVALID_PARA                  (HI_S32)(0x80310007)
#define HI_ERR_AVPLAY_CREATE_ERR                    (HI_S32)(0x80310008)
#define HI_ERR_AVPLAY_DESTROY_ERR                   (HI_S32)(0x80310009)
#define HI_ERR_AVPLAY_INVALID_OPT                   (HI_S32)(0x8031000A)
#define HI_ERR_AVPLAY_NOT_SUPPORT                   (HI_S32)(0x8031000B)
#define HI_ERR_AVPLAY_CHECK_NUM_ERR                 (HI_S32)(0x8031000C)
#define HI_ERR_AVPLAY_INST_NO_NULL                  (HI_S32)(0x8031000D)
#define HI_ERR_AVPLAY_INVALID_HANDLE                (HI_S32)(0x8031000E)
#define HI_ERR_AVPLAY_NO_FREE_INST                  (HI_S32)(0x80310010)
#define HI_ERR_AVPLAY_INIT_MUTEX_ERR                (HI_S32)(0x80310011)
#define HI_ERR_AVPLAY_DEINIT_MUTEX_ERR              (HI_S32)(0x80310012)
#define HI_ERR_AVPLAY_GET_INST_ERR                  (HI_S32)(0x80310013)
#define HI_ERR_AVPLAY_SET_INST_ERR                  (HI_S32)(0x80310014)
#define HI_ERR_AVPLAY_THREAD_OPT_ERR                (HI_S32)(0x80310015)
#define HI_ERR_AVPLAY_MULTI_AUD_ERR                 (HI_S32)(0x80310016)
#define HI_ERR_AVPLAY_START_ERR                     (HI_S32)(0x80310017)
#define HI_ERR_AVPLAY_STOP_ERR                      (HI_S32)(0x80310018)
#define HI_ERR_AVPLAY_SET_EOS_ERR                   (HI_S32)(0x80310019)
#define HI_ERR_AVPLAY_USER_DATA_ERR                 (HI_S32)(0x8031001A)
#define HI_ERR_AVPLAY_INST_OVER_RANGE               (HI_S32)(0x8031001B)
#define HI_ERR_AVPLAY_INST_NO_EXIST                 (HI_S32)(0x8031001C)

#define HI_ERR_AVPLAY_ADEC_INIT_ERR                 (HI_S32)(0x80310101)
#define HI_ERR_AVPLAY_ADEC_DEINIT_ERR               (HI_S32)(0x80310102)
#define HI_ERR_AVPLAY_ADEC_ALLOC_ERR                (HI_S32)(0x80310103)
#define HI_ERR_AVPLAY_ADEC_FREE_ERR                 (HI_S32)(0x80310104)
#define HI_ERR_AVPLAY_ADEC_SET_ATTR_ERR             (HI_S32)(0x80310105)
#define HI_ERR_AVPLAY_ADEC_GET_ATTR_ERR             (HI_S32)(0x80310106)
#define HI_ERR_AVPLAY_ADEC_START_ERR                (HI_S32)(0x80310107)
#define HI_ERR_AVPLAY_ADEC_STOP_ERR                 (HI_S32)(0x80310108)
#define HI_ERR_AVPLAY_ADEC_SET_EOS_ERR              (HI_S32)(0x80310109)
#define HI_ERR_AVPLAY_ADEC_SEEK_ERR                 (HI_S32)(0x8031010A)

#define HI_ERR_AVPLAY_VDEC_INIT_ERR                 (HI_S32)(0x80310201)
#define HI_ERR_AVPLAY_VDEC_DEINIT_ERR               (HI_S32)(0x80310202)
#define HI_ERR_AVPLAY_VDEC_ALLOC_ERR                (HI_S32)(0x80310203)
#define HI_ERR_AVPLAY_VDEC_FREE_ERR                 (HI_S32)(0x80310204)
#define HI_ERR_AVPLAY_VDEC_INIT_BUFF_ERR            (HI_S32)(0x80310205)
#define HI_ERR_AVPLAY_VDEC_DEINIT_BUFF_ERR          (HI_S32)(0x80310206)
#define HI_ERR_AVPLAY_VDEC_SET_ATTR_ERR             (HI_S32)(0x80310207)
#define HI_ERR_AVPLAY_VDEC_GET_ATTR_ERR             (HI_S32)(0x80310208)
#define HI_ERR_AVPLAY_VDEC_START_ERR                (HI_S32)(0x80310209)
#define HI_ERR_AVPLAY_VDEC_STOP_ERR                 (HI_S32)(0x8031020A)
#define HI_ERR_AVPLAY_VDEC_SET_FRT_ERR              (HI_S32)(0x8031020B)
#define HI_ERR_AVPLAY_VDEC_GET_FRT_ERR              (HI_S32)(0x8031020C)
#define HI_ERR_AVPLAY_VDEC_SET_LD_ERR               (HI_S32)(0x8031020D)
#define HI_ERR_AVPLAY_VDEC_GET_LD_ERR               (HI_S32)(0x8031020E)
#define HI_ERR_AVPLAY_VDEC_INVOKE_ERR               (HI_S32)(0x80310210)
#define HI_ERR_AVPLAY_VDEC_SET_IDR_ERR              (HI_S32)(0x80310211)
#define HI_ERR_AVPLAY_VDEC_DEC_IFRAME_ERR           (HI_S32)(0x80310212)
#define HI_ERR_AVPLAY_VDEC_REC_FRAME_ERR            (HI_S32)(0x80310213)
#define HI_ERR_AVPLAY_VDEC_REL_FRAME_ERR            (HI_S32)(0x80310214)
#define HI_ERR_AVPLAY_VDEC_SET_EOS_ERR              (HI_S32)(0x80310215)
#define HI_ERR_AVPLAY_VDEC_RESET_ERR                (HI_S32)(0x80310216)
#define HI_ERR_AVPLAY_VDEC_SEEK_ERR                 (HI_S32)(0x80310217)
#define HI_ERR_AVPLAY_VDEC_USERDATA_ERR             (HI_S32)(0x80310218)
#define HI_ERR_AVPLAY_VDEC_EXT_FUNC_NULL            (HI_S32)(0x80310219)
#define HI_ERR_AVPLAY_VDEC_SET_FPK_ERR              (HI_S32)(0x8031021a)
#define HI_ERR_AVPLAY_VDEC_GET_FPK_ERR              (HI_S32)(0x8031021b)

#define HI_ERR_AVPLAY_SYNC_INIT_ERR                 (HI_S32)(0x80310301)
#define HI_ERR_AVPLAY_SYNC_DEINIT_ERR               (HI_S32)(0x80310302)
#define HI_ERR_AVPLAY_SYNC_CREATE_ERR               (HI_S32)(0x80310303)
#define HI_ERR_AVPLAY_SYNC_DESTROY_ERR              (HI_S32)(0x80310304)
#define HI_ERR_AVPLAY_SYNC_SET_ATTR_ERR             (HI_S32)(0x80310305)
#define HI_ERR_AVPLAY_SYNC_GET_ATTR_ERR             (HI_S32)(0x80310306)
#define HI_ERR_AVPLAY_SYNC_START_ERR                (HI_S32)(0x80310307)
#define HI_ERR_AVPLAY_SYNC_STOP_ERR                 (HI_S32)(0x80310308)
#define HI_ERR_AVPLAY_SYNC_TPLAY_ERR                (HI_S32)(0x80310309)
#define HI_ERR_AVPLAY_SYNC_GET_STAT_ERR             (HI_S32)(0x8031030A)
#define HI_ERR_AVPLAY_SYNC_PAUSE_ERR                (HI_S32)(0x8031030B)
#define HI_ERR_AVPLAY_SYNC_SEEK_ERR                 (HI_S32)(0x8031030C)
#define HI_ERR_AVPLAY_SYNC_PLAY_ERR                 (HI_S32)(0x8031030D)

#define HI_ERR_AVPLAY_WIN_INIT_ERR                  (HI_S32)(0x80310401)
#define HI_ERR_AVPLAY_WIN_ENABLE_ERR                (HI_S32)(0x80310402)
#define HI_ERR_AVPLAY_WIN_ATTACH_ERR                (HI_S32)(0x80310403)
#define HI_ERR_AVPLAY_WIN_DETACH_ERR                (HI_S32)(0x80310404)
#define HI_ERR_AVPLAY_WIN_QFRAME_ERR                (HI_S32)(0x80310405)
#define HI_ERR_AVPLAY_WIN_DEQFRAME_ERR              (HI_S32)(0x80310406)
#define HI_ERR_AVPLAY_WIN_EXT_FUNC_NULL             (HI_S32)(0x80310407)
#define HI_ERR_AVPLAY_WIN_GET_HANDLE_ERR            (HI_S32)(0x80310408)

#define HI_ERR_AVPLAY_AO_INIT_ERR                   (HI_S32)(0x80310501)
#define HI_ERR_AVPLAY_AO_SET_ATTR_ERR               (HI_S32)(0x80310502)
#define HI_ERR_AVPLAY_AO_GET_ATTR_ERR               (HI_S32)(0x80310503)
#define HI_ERR_AVPLAY_AO_START_ERR                  (HI_S32)(0x80310504)
#define HI_ERR_AVPLAY_AO_STOP_ERR                   (HI_S32)(0x80310505)
#define HI_ERR_AVPLAY_AO_SET_EOS_ERR                (HI_S32)(0x80310506)
#define HI_ERR_AVPLAY_AO_SEEK_ERR                   (HI_S32)(0x80310507)
#define HI_ERR_AVPLAY_AO_ATTACH_ERR                 (HI_S32)(0x80310508)
#define HI_ERR_AVPLAY_AO_DETACH_ERR                 (HI_S32)(0x80310509)

#define HI_ERR_AVPLAY_DMX_ALLOC_ERR                 (HI_S32)(0x80310601)
#define HI_ERR_AVPLAY_DMX_FREE_ERR                  (HI_S32)(0x80310602)
#define HI_ERR_AVPLAY_DMX_CTEATE_PCR_ERR            (HI_S32)(0x80310603)
#define HI_ERR_AVPLAY_DMX_DESTROY_PCR_ERR           (HI_S32)(0x80310604)
#define HI_ERR_AVPLAY_DMX_SET_PID_ERR               (HI_S32)(0x80310605)
#define HI_ERR_AVPLAY_DMX_GET_PID_ERR               (HI_S32)(0x80310606)
#define HI_ERR_AVPLAY_DMX_OPEN_ERR                  (HI_S32)(0x80310607)
#define HI_ERR_AVPLAY_DMX_CLOSE_ERR                 (HI_S32)(0x80310608)
#define HI_ERR_AVPLAY_DMX_SET_EOS_ERR               (HI_S32)(0x80310609)

#define HI_ERR_AVPLAY_FDMNG_CREATE_ERR              (HI_S32)(0x80310701)
#define HI_ERR_AVPLAY_FDMNG_DESTROY_ERR             (HI_S32)(0x80310702)
#define HI_ERR_AVPLAY_FDMNG_START_ERR               (HI_S32)(0x80310703)
#define HI_ERR_AVPLAY_FDMNG_STOP_ERR                (HI_S32)(0x80310704)
#define HI_ERR_AVPLAY_FDMNG_EXT_FUNC_NULL           (HI_S32)(0x80310705)
#define HI_ERR_AVPLAY_FDMNG_QUERY_ERR               (HI_S32)(0x80310706)
#define HI_ERR_AVPLAY_FDMNG_INVALID_HANDLE          (HI_S32)(0x80310707)
/* Define SYNC Error Code */
#define HI_ERR_SYNC_DEV_NOT_EXIST                   (HI_S32)(0x80320001)
#define HI_ERR_SYNC_NOT_DEV_FILE                    (HI_S32)(0x80320002)
#define HI_ERR_SYNC_DEV_OPEN_ERR                    (HI_S32)(0x80320003)
#define HI_ERR_SYNC_DEV_CLOSE_ERR                   (HI_S32)(0x80320004)
#define HI_ERR_SYNC_NULL_PTR                        (HI_S32)(0x80320005)
#define HI_ERR_SYNC_DEV_NO_INIT                     (HI_S32)(0x80320006)
#define HI_ERR_SYNC_INVALID_PARA                    (HI_S32)(0x80320007)
#define HI_ERR_SYNC_CREATE_ERR                      (HI_S32)(0x80320008)
#define HI_ERR_SYNC_DESTROY_ERR                     (HI_S32)(0x80320009)
#define HI_ERR_SYNC_INVALID_OPT                     (HI_S32)(0x8032000A)
#define HI_ERR_SYNC_INVALID_HANDLE                  (HI_S32)(0x8032000B)
#define HI_ERR_SYNC_INST_OVER_RANGE                 (HI_S32)(0x8032000C)

/* Define MCE Error Code */
#define HI_ERR_MCE_DEV_NOT_EXIST                    (HI_S32)(0x80330001)
#define HI_ERR_MCE_NOT_DEVICE                       (HI_S32)(0x80330002)
#define HI_ERR_MCE_DEV_OPEN_ERR                     (HI_S32)(0x80330003)
#define HI_ERR_MCE_DEV_NOT_INIT                     (HI_S32)(0x80330004)
#define HI_ERR_MCE_PTR_NULL                         (HI_S32)(0x80330005)
#define HI_ERR_MCE_PARAM_INVALID                    (HI_S32)(0x80330006)
#define HI_ERR_MCE_GET_MTDINFO_ERR                  (HI_S32)(0x80330007)
#define HI_ERR_MCE_MTD_OPEN                         (HI_S32)(0x80330008)
#define HI_ERR_MCE_MTD_CLOSE                        (HI_S32)(0x80330009)
#define HI_ERR_MCE_MTD_READ                         (HI_S32)(0x80330010)
#define HI_ERR_MCE_MTD_WRITE                        (HI_S32)(0x80330011)
#define HI_ERR_MCE_MTD_GETINFO                      (HI_S32)(0x80330012)
#define HI_ERR_MCE_MTD_ERASE                        (HI_S32)(0x80330013)
#define HI_ERR_MCE_MEM_ALLC                         (HI_S32)(0x80330014)
#define HI_ERR_MCE_INVALID_OPT                      (HI_S32)(0x80330015)
/* Define VP Error Code */
#define HI_ERR_VP_PTR_NULL                          (HI_S32)(0x80340001)
#define HI_ERR_VP_NOT_INIT                          (HI_S32)(0x80340002)
#define HI_ERR_VP_DEV_NOT_EXIST                     (HI_S32)(0x80340003)
#define HI_ERR_VP_NOT_DEV_FILE                      (HI_S32)(0x80340004)
#define HI_ERR_VP_DEV_OPEN_ERR                      (HI_S32)(0x80340005)
#define HI_ERR_VP_INVALID_PARA                      (HI_S32)(0x80340006)
#define HI_ERR_VP_NOT_SUPPORT                       (HI_S32)(0x80340007)
#define HI_ERR_VP_INVALID_HANDLE                    (HI_S32)(0x80340008)
#define HI_ERR_VP_HANDLE_NOTEXIST                   (HI_S32)(0x80340009)
#define HI_ERR_VP_NOT_READY                         (HI_S32)(0x8034000a)
#define HI_ERR_VP_ILLEGAL_STATE                     (HI_S32)(0x8034000b)
/* Define IR Error Code */
#define HI_ERR_IR_OPEN_ERR                          (HI_S32)(0x80410001)
#define HI_ERR_IR_CLOSE_ERR                         (HI_S32)(0x80410002)
#define HI_ERR_IR_NOT_INIT                          (HI_S32)(0x80410003)
#define HI_ERR_IR_INVALID_PARA                      (HI_S32)(0x80410004)
#define HI_ERR_IR_NULL_PTR                          (HI_S32)(0x80410005)
#define HI_ERR_IR_READ_FAILED                       (HI_S32)(0x80410006)
#define HI_ERR_IR_ENABLE_FAILED                     (HI_S32)(0x80410007)
#define HI_ERR_IR_SET_BLOCKTIME_FAILED              (HI_S32)(0x80410008)
#define HI_ERR_IR_SET_FETCHMETHOD_FAILED            (HI_S32)(0x80410009)
#define HI_ERR_IR_SET_KEYUP_FAILED                  (HI_S32)(0x8041000A)
#define HI_ERR_IR_SET_REPEAT_FAILED                 (HI_S32)(0x8041000B)
#define HI_ERR_IR_SET_REPKEYTIMEOUT_FAILED          (HI_S32)(0x8041000C)
#define HI_ERR_IR_RESET_FAILED                      (HI_S32)(0x8041000D)
#define HI_ERR_IR_ENABLE_PROT_FAILED                (HI_S32)(0x8041000E)
#define HI_ERR_IR_DISABLE_PROT_FAILED               (HI_S32)(0x8041000F)
#define HI_ERR_IR_GET_PROTENABLE_FAILED             (HI_S32)(0x80410010)
#define HI_ERR_IR_SETFORMAT_FAILED                  (HI_S32)(0x80410011)
#define HI_ERR_IR_UNSUPPORT                         (HI_S32)(0x80410012)
/* Define RTC Error Code */
#define HI_ERR_RTC_NOT_INIT                         (HI_S32)(0x80420001)
#define HI_ERR_RTC_REPEAT_INIT                      (HI_S32)(0x80420002)
#define HI_ERR_RTC_INVALID_POINT                    (HI_S32)(0x80420003)
#define HI_ERR_RTC_INVALID_PARA                     (HI_S32)(0x80420004)
#define HI_ERR_RTC_FAILED_INIT                      (HI_S32)(0x80420005)
#define HI_ERR_RTC_FAILED_SETTIME                   (HI_S32)(0x80420006)
#define HI_ERR_RTC_FAILED_GETTIME                   (HI_S32)(0x80420007)
#define HI_ERR_RTC_FAILED_ALARMENABLE               (HI_S32)(0x80420008)
#define HI_ERR_RTC_FAILED_ALARMDISABLE              (HI_S32)(0x80420009)
#define HI_ERR_RTC_FAILED_SETALARM                  (HI_S32)(0x8042000A)
#define HI_ERR_RTC_FAILED_GETALARM                  (HI_S32)(0x8042000B)
/* Define WDG Error Code */
#define HI_ERR_WDG_NOT_INIT                         (HI_S32)(0x80430001)
#define HI_ERR_WDG_REPEAT_INIT                      (HI_S32)(0x80430002)
#define HI_ERR_WDG_INVALID_POINT                    (HI_S32)(0x80430003)
#define HI_ERR_WDG_INVALID_PARA                     (HI_S32)(0x80430004)
#define HI_ERR_WDG_FAILED_INIT                      (HI_S32)(0x80430005)
#define HI_ERR_WDG_FAILED_SETTIMEOUT                (HI_S32)(0x80430006)
#define HI_ERR_WDG_FAILED_ENABLE                    (HI_S32)(0x80430007)
#define HI_ERR_WDG_FAILED_DISABLE                   (HI_S32)(0x80430008)
#define HI_ERR_WDG_FAILED_CLEARWDG                  (HI_S32)(0x80430009)
#define HI_ERR_WDG_FAILED_RESET                     (HI_S32)(0x8043000A)
#define HI_ERR_WDG_FAILED_RESMODE                   (HI_S32)(0x8043000B)
#define HI_ERR_WDG_NOT_SUPPORT                      (HI_S32)(0x8043000C)
#define HI_ERR_WDG_FAILED_GETTIMEOUT                (HI_S32)(0x8043000D)
#define HI_ERR_WDG_FAILED_DEINIT                    (HI_S32)(0x8043000E)
/* Define I2C Error Code */
#define HI_ERR_I2C_OPEN_ERR                         (HI_S32)(0x80440001)
#define HI_ERR_I2C_CLOSE_ERR                        (HI_S32)(0x80440002)
#define HI_ERR_I2C_NOT_INIT                         (HI_S32)(0x80440003)
#define HI_ERR_I2C_INVALID_PARA                     (HI_S32)(0x80440004)
#define HI_ERR_I2C_NULL_PTR                         (HI_S32)(0x80440005)
#define HI_ERR_I2C_COPY_DATA_ERR                    (HI_S32)(0x80440006)
#define HI_ERR_I2C_MALLOC_ERR                       (HI_S32)(0x80440007)
#define HI_ERR_I2C_WRITE_TIMEOUT                    (HI_S32)(0x80440008)
#define HI_ERR_I2C_READ_TIMEOUT                     (HI_S32)(0x80440009)
#define HI_ERR_I2C_ACK_ERR                          (HI_S32)(0x8044000A)
/* Define SCI Error Code */
#define HI_ERR_SCI_OPEN_ERR                         (HI_S32)(0x80450001)
#define HI_ERR_SCI_CLOSE_ERR                        (HI_S32)(0x80450002)
#define HI_ERR_SCI_NOT_INIT                         (HI_S32)(0x80450003)
#define HI_ERR_SCI_INVALID_PARA                     (HI_S32)(0x80450004)
#define HI_ERR_SCI_NULL_PTR                         (HI_S32)(0x80450005)
#define HI_ERR_SCI_INVALID_OPT                      (HI_S32)(0x80450006)
#define HI_ERR_SCI_SEND_ERR                         (HI_S32)(0x80450007)
#define HI_ERR_SCI_RECEIVE_ERR                      (HI_S32)(0x80450008)
#define HI_ERR_SCI_NO_ATR                           (HI_S32)(0x80450009)
#define HI_ERR_SCI_PPS_PTYPE_ERR                    (HI_S32)(0x8045000A)
#define HI_ERR_SCI_PPS_FACTOR_ERR                   (HI_S32)(0x8045000B)
#define HI_ERR_SCI_PPS_NOTSUPPORT_ERR               (HI_S32)(0x8045000C)
#define HI_ERR_SCI_NOTSUPPORT                       (HI_S32)(0x8045000D)
/* Define ETH Error Code */
#define HI_ERR_ETH_NOT_INIT                         (HI_S32)(0x80460001)
#define HI_ERR_ETH_REPEAT_INIT                      (HI_S32)(0x80460002)
#define HI_ERR_ETH_INVALID_POINT                    (HI_S32)(0x80460003)
#define HI_ERR_ETH_INVALID_PARA                     (HI_S32)(0x80460004)
#define HI_ERR_ETH_FAILED_INIT                      (HI_S32)(0x80460005)
/* Define GPIO Error Code */
#define HI_ERR_GPIO_OPEN_ERR                        (HI_S32)(0x80470001)
#define HI_ERR_GPIO_CLOSE_ERR                       (HI_S32)(0x80470002)
#define HI_ERR_GPIO_NOT_INIT                        (HI_S32)(0x80470003)
#define HI_ERR_GPIO_INVALID_PARA                    (HI_S32)(0x80470004)
#define HI_ERR_GPIO_NULL_PTR                        (HI_S32)(0x80470005)
#define HI_ERR_GPIO_INVALID_OPT                     (HI_S32)(0x80470006)
#define HI_ERR_GPIO_FAILED_SETINT                   (HI_S32)(0x80470007)
#define HI_ERR_GPIO_FAILED_SETENABLE                (HI_S32)(0x80470008)
#define HI_ERR_GPIO_FAILED_GETINT                   (HI_S32)(0x80470009)
#define HI_ERR_GPIO_GETINT_TIMEOUT                  (HI_S32)(0x8047000A)
#define HI_ERR_GPIO_INTTYPE_NOT_SUPPORT             (HI_S32)(0x8047000B)
#define HI_ERR_GPIO_NOT_SUPPORT                     (HI_S32)(0x8047000C)
#define HI_ERR_GPIO_FAILED_SETOUTPUTTYPE            (HI_S32)(0x8047000D)
#define HI_ERR_GPIO_FAILED_GETOUTPUTTYPE            (HI_S32)(0x8047000E)
#define HI_ERR_GPIO_FAILED_SETDIRECT                (HI_S32)(0x8047000F)
#define HI_ERR_GPIO_FAILED_GETDIRECT                (HI_S32)(0x80470010)
#define HI_ERR_GPIO_FAILED_SETVALUE                 (HI_S32)(0x80470011)
#define HI_ERR_GPIO_FAILED_GETVALUE                 (HI_S32)(0x80470012)
/* Define DMAC Error Code */
#define HI_ERR_DMAC_NOT_INIT                        (HI_S32)(0x80480001)
#define HI_ERR_DMAC_REPEAT_INIT                     (HI_S32)(0x80480002)
#define HI_ERR_DMAC_INVALID_POINT                   (HI_S32)(0x80480003)
#define HI_ERR_DMAC_INVALID_PARA                    (HI_S32)(0x80480004)
#define HI_ERR_DMAC_FAILED_INIT                     (HI_S32)(0x80480005)
#define HI_ERR_DMAC_FAILED_GETCHANNEL               (HI_S32)(0x80480006)
#define HI_ERR_DMAC_FAILED_MEMTRANS                 (HI_S32)(0x80480007)
#define HI_ERR_DMAC_FAILED_PERTRANS                 (HI_S32)(0x80480008)
#define HI_ERR_DMAC_FAILED_GETSTAT                  (HI_S32)(0x80480009)
#define HI_ERR_DMAC_FAILED_LISTRESET                (HI_S32)(0x8048000A)
#define HI_ERR_DMAC_FAILED_ADDLIST                  (HI_S32)(0x8048000B)
#define HI_ERR_DMAC_FAILED_LISTTRANS                (HI_S32)(0x8048000C)
/* Define PMOC Error Code */
#define  HI_ERR_PMOC_NOT_INIT                       (HI_S32)(0x80490001)
#define  HI_ERR_PMOC_REPEAT_INIT                    (HI_S32)(0x80490002)
#define  HI_ERR_PMOC_INVALID_POINT                  (HI_S32)(0x80490003)
#define  HI_ERR_PMOC_INVALID_PARA                   (HI_S32)(0x80490004)
#define  HI_ERR_PMOC_FAILED_INIT                    (HI_S32)(0x80490005)
#define  HI_ERR_PMOC_FAILED_MODE                    (HI_S32)(0x80490006)
#define  HI_ERR_PMOC_FAILED_READMODE                (HI_S32)(0x80490007)
#define  HI_ERR_PMOC_FAILED_IRPOWERVAL              (HI_S32)(0x80490008)
#define  HI_ERR_PMOC_FAILED_KEYLEDPOWERVAL          (HI_S32)(0x80490009)
#define  HI_ERR_PMOC_INVALID_MODE                   (HI_S32)(0x8049000A)
#define  HI_ERR_PMOC_FAILED_STANDBY                 (HI_S32)(0x8049000B)
#define  HI_ERR_PMOC_FAILED_SETDEV                  (HI_S32)(0x8049000C)
#define  HI_ERR_PMOC_FAILED_GETPERIOD               (HI_S32)(0x8049000D)
#define  HI_ERR_PMOC_FAILED_GETWAKEUPMODE           (HI_S32)(0x8049000E)
#define  HI_ERR_PMOC_FAILED_SENDMCUMSG              (HI_S32)(0x8049000F)
#define  HI_ERR_PMOC_FAILED_GETMCUMSG               (HI_S32)(0x80490010)
#define  HI_ERR_PMOC_SOCKET_NOT_INIT                (HI_S32)(0x80490011)
#define  HI_ERR_PMOC_SOCKET_IOCTL_FAILED            (HI_S32)(0x80490012)
#define  HI_ERR_PMOC_UNSUPPORTED                    (HI_S32)(0x80490013)
#define  HI_ERR_PMOC_OTHER_ERROR                    (HI_S32)(0x804900FF)
/* Define TUNER Error Code */
#define HI_ERR_TUNER_NOT_INIT                       (HI_S32)(0x804A0001)
#define HI_ERR_TUNER_NOT_OPEN                       (HI_S32)(0x804A0002)
#define HI_ERR_TUNER_INVALID_POINT                  (HI_S32)(0x804A0003)
#define HI_ERR_TUNER_INVALID_PARA                   (HI_S32)(0x804A0004)
#define HI_ERR_TUNER_FAILED_INIT                    (HI_S32)(0x804A0005)
#define HI_ERR_TUNER_FAILED_CONNECT                 (HI_S32)(0x804A0006)
#define HI_ERR_TUNER_FAILED_GETSTATUS               (HI_S32)(0x804A0007)
#define HI_ERR_TUNER_FAILED_GETSIGNALSTRENGTH       (HI_S32)(0x804A0008)
#define HI_ERR_TUNER_FAILED_GETBER                  (HI_S32)(0x804A0009)
#define HI_ERR_TUNER_FAILED_GETSNR                  (HI_S32)(0x804A000A)
#define HI_ERR_TUNER_FAILED_SETTSTYPE               (HI_S32)(0x804A000B)
#define HI_ERR_TUNER_FAILED_SELECTTUNER             (HI_S32)(0x804A000C)
#define HI_ERR_TUNER_FAILED_SELECTI2CCHANNEL        (HI_S32)(0x804A000D)
#define HI_ERR_TUNER_FAILED_LOWCONS                 (HI_S32)(0x804A000E)
#define HI_ERR_TUNER_FAILED_NORMALMODE              (HI_S32)(0x804A000F)
#define HI_ERR_TUNER_FAILED_REGRW                   (HI_S32)(0x804A0010)
#define HI_ERR_TUNER_FAILED_SETTUNER                (HI_S32)(0x804A0011)
#define HI_ERR_TUNER_NOT_CONNECT                    (HI_S32)(0x804A0012)
#define HI_ERR_TUNER_INVALID_PORT                   (HI_S32)(0x804A0013)
#define HI_ERR_TUNER_FAILED_SETQAMINSIDE            (HI_S32)(0x804A0014)
#define HI_ERR_TUNER_FAILED_SELECTSYMBOLRATE        (HI_S32)(0x804A0015)
#define HI_ERR_TUNER_FAILED_GETSIGNALQUALITY        (HI_S32)(0x804A0016)
#define HI_ERR_TUNER_FAILED_GETSIGNALINFO           (HI_S32)(0x804A0017)
#define HI_ERR_TUNER_FAILED_BLINDSCAN               (HI_S32)(0x804A0018)
#define HI_ERR_TUNER_FAILED_LNBCTRL                 (HI_S32)(0x804A0019)
#define HI_ERR_TUNER_FAILED_SWITCH                  (HI_S32)(0x804A001A)
#define HI_ERR_TUNER_FAILED_DISEQC                  (HI_S32)(0x804A001B)
#define HI_ERR_TUNER_FAILED_STANDBY                 (HI_S32)(0x804A001C)
#define HI_ERR_TUNER_FAILED_WAKEUP                  (HI_S32)(0x804A001D)
#define HI_ERR_TUNER_FAILED_DISABLE                 (HI_S32)(0x804A001E)
#define HI_ERR_TUNER_FAILED_ENABLE                  (HI_S32)(0x804A001F)
#define HI_ERR_TUNER_FAILED_SETPLPID                (HI_S32)(0x804A0020)
#define HI_ERR_TUNER_FAILED_GETPLPNUM               (HI_S32)(0x804A0021)
#define HI_ERR_TUNER_FAILED_GETPLPTYPE              (HI_S32)(0x804A0022)
#define HI_ERR_TUNER_FAILED_SETTSOUT                (HI_S32)(0x804A0023)
#define HI_ERR_TUNER_FAILED_SETSATATTR              (HI_S32)(0x804A0024)
#define HI_ERR_TUNER_FAILED_SAMPLEDATA              (HI_S32)(0x804A0025)
#define HI_ERR_TUNER_FAILED_SETSTEP                 (HI_S32)(0x804A0026)
#define HI_ERR_TUNER_FAILED_GETBANDRANGE            (HI_S32)(0x804A0027)
#define HI_ERR_TUNER_FAILED_SETTOPADJUST            (HI_S32)(0x804A0028)
#define HI_ERR_TUNER_FAILED_GETBAND                 (HI_S32)(0x804A0029)
#define HI_ERR_TUNER_FAILED_SETFINETUNE             (HI_S32)(0x804A002A)
#define HI_ERR_TUNER_FAILED_GETSTEP                 (HI_S32)(0x804A002B)
#define HI_ERR_TUNER_FAILED_SETSIGTYPE              (HI_S32)(0x804A002C)
#define HI_ERR_TUNER_FAILED_MONITORISDBTLAYER       (HI_S32)(0x804A002D)
#define HI_ERR_TUNER_NOT_SUPPORT                    (HI_S32)(0x804A002E)
#define HI_ERR_TUNER_FAILED_RECORDQTC               (HI_S32)(0x804A002F)
#define HI_ERR_TUNER_FAILED_GETQTCSTATUS            (HI_S32)(0x804A0030)
#define HI_ERR_TUNER_FILE_PATH_LEN                  (HI_S32)(0x804A0031)
#define HI_ERR_TUNER_FILE_SIZE                      (HI_S32)(0x804A0032)
#define HI_ERR_TUNER_DISK_AUTH                      (HI_S32)(0x804A0033)
#define HI_ERR_TUNER_DISK_RW_SPEED                  (HI_S32)(0x804A0034)
#define HI_ERR_TUNER_FAILED_GETFREQSYMBOFFSET       (HI_S32)(0x804A0035)
#define HI_ERR_TUNER_FAILED_GETAGC                  (HI_S32)(0x804A0036)
#define HI_ERR_TUNER_FAILED_ALLOC_MEM               (HI_S32)(0x804A0037)
#define HI_ERR_TUNER_FAILED_SETISIID                (HI_S32)(0x804A0038)
#define HI_ERR_TUNER_FAILED_GETISIID                (HI_S32)(0x804A0039)
#define HI_ERR_TUNER_FAILED_GETTOTALISI             (HI_S32)(0x804A003A)
#define HI_ERR_TUNER_FAILED_SET_SCRAMBLE            (HI_S32)(0x804A003B)
/* Define KEYLED Error Code */
#define HI_ERR_KEYLED_NOT_INIT                      (HI_S32)(0x804B0001)
#define HI_ERR_KEYLED_INVALID_PARA                  (HI_S32)(0x804B0002)
#define HI_ERR_KEYLED_NULL_PTR                      (HI_S32)(0x804B0003)
#define HI_ERR_KEYLED_NO_NEW_KEY                    (HI_S32)(0x804B0004)
#define HI_ERR_KEYLED_TIMEOUT                       (HI_S32)(0x804B0005)
#define HI_ERR_KEYLED_FAILED_SETMODE                (HI_S32)(0x804B0006)
#define HI_ERR_KEYLED_FAILED_DISPLAY                (HI_S32)(0x804B0007)
/* Define E2PROM Error Code */
#define HI_ERR_E2PROM_OPEN_ERR                      (HI_S32)(0x804C0001)
#define HI_ERR_E2PROM_CLOSE_ERR                     (HI_S32)(0x804C0002)
#define HI_ERR_E2PROM_NOT_INIT                      (HI_S32)(0x804C0003)
#define HI_ERR_E2PROM_INVALID_PARA                  (HI_S32)(0x804C0004)
#define HI_ERR_E2PROM_NULL_PTR                      (HI_S32)(0x804C0005)
#define HI_ERR_E2PROM_COPY_DATA_ERR                 (HI_S32)(0x804C0006)
#define HI_ERR_E2PROM_MALLOC_ERR                    (HI_S32)(0x804C0007)
/* Define CIPHER Error Code */
#define  HI_ERR_CIPHER_NOT_INIT                     (HI_S32)(0x804D0001)
#define  HI_ERR_CIPHER_INVALID_HANDLE               (HI_S32)(0x804D0002)
#define  HI_ERR_CIPHER_INVALID_POINT                (HI_S32)(0x804D0003)
#define  HI_ERR_CIPHER_INVALID_PARA                 (HI_S32)(0x804D0004)
#define  HI_ERR_CIPHER_FAILED_INIT                  (HI_S32)(0x804D0005)
#define  HI_ERR_CIPHER_FAILED_GETHANDLE             (HI_S32)(0x804D0006)
#define  HI_ERR_CIPHER_FAILED_RELEASEHANDLE         (HI_S32)(0x804D0007)
#define  HI_ERR_CIPHER_FAILED_CONFIGAES             (HI_S32)(0x804D0008)
#define  HI_ERR_CIPHER_FAILED_CONFIGDES             (HI_S32)(0x804D0009)
#define  HI_ERR_CIPHER_FAILED_ENCRYPT               (HI_S32)(0x804D000A)
#define  HI_ERR_CIPHER_FAILED_DECRYPT               (HI_S32)(0x804D000B)
#define  HI_ERR_CIPHER_BUSY                         (HI_S32)(0x804D000C)
#define  HI_ERR_CIPHER_NO_AVAILABLE_RNG             (HI_S32)(0x804D000D)
#define  HI_ERR_CIPHER_FAILED_MEM                   (HI_S32)(0x804D000E)
#define  HI_ERR_CIPHER_UNAVAILABLE                  (HI_S32)(0x804D000F)
#define  HI_ERR_CIPHER_OVERFLOW                     (HI_S32)(0x804D0010)
#define  HI_ERR_CIPHER_HARD_STATUS                  (HI_S32)(0x804D0011)
#define  HI_ERR_CIPHER_TIMEOUT                      (HI_S32)(0x804D0012)
#define  HI_ERR_CIPHER_UNSUPPORTED                  (HI_S32)(0x804D0013)
#define  HI_ERR_CIPHER_REGISTER_IRQ                 (HI_S32)(0x804D0014)
#define  HI_ERR_CIPHER_ILLEGAL_UUID                 (HI_S32)(0x804D0015)
#define  HI_ERR_CIPHER_ILLEGAL_KEY                  (HI_S32)(0x804D0016)
#define  HI_ERR_CIPHER_INVALID_ADDR                 (HI_S32)(0x804D0017)
#define  HI_ERR_CIPHER_INVALID_LENGTH               (HI_S32)(0x804D0018)
#define  HI_ERR_CIPHER_ILLEGAL_DATA                 (HI_S32)(0x804D0019)
#define  HI_ERR_CIPHER_RSA_SIGN                     (HI_S32)(0x804D001A)
#define  HI_ERR_CIPHER_RSA_VERIFY                   (HI_S32)(0x804D001B)
/* Define CA Error Code */
#define  HI_ERR_CA_OPEN_ERR                         (HI_S32)(0x804E0001)
#define  HI_ERR_CA_CLOSE_ERR                        (HI_S32)(0x804E0002)
#define  HI_ERR_CA_NOT_INIT                         (HI_S32)(0x804E0003)
#define  HI_ERR_CA_COPY_DATA_ERR                    (HI_S32)(0x804E0004)
#define  HI_ERR_CA_INVALID_PARA                     (HI_S32)(0x804E0005)
#define  HI_ERR_CA_WAIT_TIMEOUT                     (HI_S32)(0x804E0006)
#define  HI_ERR_CA_CW_DECRYPT                       (HI_S32)(0x804E0007)
#define  HI_ERR_CA_R2R_DECRYPT                      (HI_S32)(0x804E0008)
#define  HI_ERR_CA_R2R_ENCRYPT                      (HI_S32)(0x804E0009)
#define  HI_ERR_CA_SETPARAM_AGAIN                   (HI_S32)(0x804E000A)
#define  HI_ERR_CA_DBG_INERR                        (HI_S32)(0x804E000B)
#define  HI_ERR_CA_NOT_CONFIG                       (HI_S32)(0x804E000C)
#define  HI_ERR_CA_LPK_DECRYPT                      (HI_S32)(0x804E000D)
#define  HI_ERR_CA_NOT_SUPPORT                      (HI_S32)(0x804E000E)
#define  HI_ERR_CA_SWPK_ENCRYPT                     (HI_S32)(0x804E000F)
#define  HI_ERR_CA_UNSUPPORT                        (HI_S32)(0x804E0010)

/* Define OM Error Code */
#define  HI_ERR_PM_COPY_DATA_ERR                    (HI_S32)(0x804F0001)
#define  HI_ERR_PM_INVALID_PARAM                    (HI_S32)(0x804F0002)
/* Define CI Error Code */
#define  HI_ERR_CI_NOT_INIT                         (HI_S32)(0x80500001)
#define  HI_ERR_CI_OPEN_ERR                         (HI_S32)(0x80500002)
#define  HI_ERR_CI_CLOSE_ERR                        (HI_S32)(0x80500003)
#define  HI_ERR_CI_INVALID_PARA                     (HI_S32)(0x80500004)
#define  HI_ERR_CI_NO_MEMORY                        (HI_S32)(0x80500005)
#define  HI_ERR_CI_TIMEOUT                          (HI_S32)(0x80500006)
#define  HI_ERR_CI_REG_READ_ERR                     (HI_S32)(0x80500007)
#define  HI_ERR_CI_REG_WRITE_ERR                    (HI_S32)(0x80500008)
#define  HI_ERR_CI_IO_READ_ERR                      (HI_S32)(0x80500009)
#define  HI_ERR_CI_IO_WRITE_ERR                     (HI_S32)(0x8050000A)
#define  HI_ERR_CI_ATTR_READ_ERR                    (HI_S32)(0x8050000B)
#define  HI_ERR_CI_ATTR_WRITE_ERR                   (HI_S32)(0x8050000C)
#define  HI_ERR_CI_CANNOT_POWEROFF                  (HI_S32)(0x8050000D)
#define  HI_ERR_CI_PCCD_DEVICE_BUSY                 (HI_S32)(0x8050000E)
#define  HI_ERR_CI_PCCD_CIS_READ                    (HI_S32)(0x8050000F)
#define  HI_ERR_CI_UNSUPPORT                        (HI_S32)(0x80500010)
#define  HI_ERR_CI_UNKONWN                          (HI_S32)(0x80500011)
#define  HI_ERR_CI_DETECT_ERR                       (HI_S32)(0x80500012)
/* Define PWM Error Code */
#define HI_ERR_PWM_DEV_NOT_EXIST                    (HI_S32)(0x80510001)
#define HI_ERR_PWM_NOT_INIT                         (HI_S32)(0x80510002)
#define HI_ERR_PWM_OPEN_ERR                         (HI_S32)(0x80510003)
#define HI_ERR_PWM_CLOSE_ERR                        (HI_S32)(0x80510004)
#define HI_ERR_PWM_INVALID_PARA                     (HI_S32)(0x80510005)
#define HI_ERR_PWM_INVALID_OPT                      (HI_S32)(0x80510006)
#define HI_ERR_PWM_UNSUPPORT                        (HI_S32)(0x80510007)
/* Define LSADC Error Code */
#define  HI_ERR_LSADC_INVALID_PARA                  (HI_S32)(0x80520004)
#define  HI_ERR_LSADC_FAILED_INIT                   (HI_S32)(0x80520005)
#define  HI_ERR_LSADC_GET_DATA_ERR                  (HI_S32)(0x80520006)
#define  HI_ERR_LSADC_CLOSE_ERR                     (HI_S32)(0x80520007)
#define  HI_ERR_LSADC_OTHER_ERR                     (HI_S32)(0x805200FF)

/* Define UART Error Code */
#define HI_ERR_UART_OPENED                          (HI_S32)(0x80530000)
#define HI_ERR_UART_NOT_OPEN                        (HI_S32)(0x80530001)
#define HI_ERR_UART_BUFF                            (HI_S32)(0x80530002)
#define HI_ERR_UART_OPEN                            (HI_S32)(0x80530003)
#define HI_ERR_UART_MAP                             (HI_S32)(0x80530004)
#define HI_ERR_UART_UNMAP                           (HI_S32)(0x80530005)
#define HI_ERR_UART_CLOSE                           (HI_S32)(0x80530006)
#define HI_ERR_UART_DEVICE                          (HI_S32)(0x80530007)
#define HI_ERR_UART_CREATE_THREAD                   (HI_S32)(0x80530008)
#define HI_ERR_UART_THREAD_JOIN                     (HI_S32)(0x80530009)
#define HI_ERR_UART_SET_ATTR                        (HI_S32)(0x8053000a)
#define HI_ERR_UART_GET_ATTR                        (HI_S32)(0x8053000b)
#define HI_ERR_UART_SPEED                           (HI_S32)(0x8053000c)
#define HI_ERR_UART_IOSPEED                         (HI_S32)(0x8053000d)
#define HI_ERR_UART_DATABITS                        (HI_S32)(0x8053000e)
#define HI_ERR_UART_PARITY                          (HI_S32)(0x8053000f)
#define HI_ERR_UART_STOPBITS                        (HI_S32)(0x80530010)
#define HI_ERR_UART_WRITE                           (HI_S32)(0x80530011)
#define HI_ERR_UART_READ                            (HI_S32)(0x80530012)
#define HI_ERR_UART_GEN                             (HI_S32)(0x80530013)
#define HI_ERR_UART_NULL_PTR                        (HI_S32)(0x80530014)
#define HI_ERR_UART_INVALID_PARA                    (HI_S32)(0x80530015)
/* Define RM Error Code */
#define HI_ERR_RM_DEV_NOT_EXIST                     (HI_S32)(0x80540001)
#define HI_ERR_RM_DEV_NOT_INIT                      (HI_S32)(0x80540002)
#define HI_ERR_RM_DEV_OPEN_ERR                      (HI_S32)(0x80540003)
#define HI_ERR_RM_DEV_CLOSE_ERR                     (HI_S32)(0x80540004)
#define HI_ERR_RM_NULL_PTR                          (HI_S32)(0x80540005)
#define HI_ERR_RM_DEV_NO_INIT                       (HI_S32)(0x80540006)
#define HI_ERR_RM_INVALID_PARA                      (HI_S32)(0x80540007)
#define HI_ERR_RM_INVALID_OPT                       (HI_S32)(0x80540008)
#define HI_ERR_RM_NOT_SUPPORT                       (HI_S32)(0x80540009)
#define HI_ERR_RM_INVALID_HANDLE                    (HI_S32)(0x8054000A)
#define HI_ERR_RM_INST_OVER_RANGE                   (HI_S32)(0x8054000B)
#define HI_ERR_RM_CMD_NOT_EXIST                     (HI_S32)(0x8054000C)
#define HI_ERR_RM_INIT_LIST_ERR                     (HI_S32)(0x8054000D)
#define HI_ERR_RM_DEINIT_LIST_ERR                   (HI_S32)(0x8054000E)
#define HI_ERR_RM_ENABLE_ERR                        (HI_S32)(0x80540010)
#define HI_ERR_RM_DISABLE_ERR                       (HI_S32)(0x80540011)
#define HI_ERR_RM_CREATE_ERR                        (HI_S32)(0x80540012)
#define HI_ERR_RM_DESTROY_ERR                       (HI_S32)(0x80540013)
#define HI_ERR_RM_NOT_FREE_INST                     (HI_S32)(0x80540014)
#define HI_ERR_RM_NOT_FREE_CB_INST                  (HI_S32)(0x80540015)
#define HI_ERR_RM_NOT_RESOURCE                      (HI_S32)(0x80540016)
/* Define FDMNG Error Code */
#define HI_ERR_FDMNG_NULL_PTR                       (HI_S32)(0x80550001)
#define HI_ERR_FDMNG_DET_3D_ERR                     (HI_S32)(0x80550002)
#define HI_ERR_FDMNG_INVALID_PARA                   (HI_S32)(0x80550003)
#define HI_ERR_FDMNG_INVALID_OPT                    (HI_S32)(0x80550004)
#define HI_ERR_FDMNG_NOT_SUPPORT                    (HI_S32)(0x80550005)
#define HI_ERR_FDMNG_INVALID_HANDLE                 (HI_S32)(0x80550006)
#define HI_ERR_FDMNG_INST_OVER_RANGE                (HI_S32)(0x80550007)
#define HI_ERR_FDMNG_NOT_FREE_INST                  (HI_S32)(0x80550008)
#define HI_ERR_FDMNG_FORMAT_INIT_ERR                (HI_S32)(0x80550009)
#define HI_ERR_FDMNG_CREATE_PORT_ERR                (HI_S32)(0x8055000A)
#define HI_ERR_FDMNG_DESTROY_PORT_ERR               (HI_S32)(0x8055000B)
#define HI_ERR_FDMNG_BUFF_INIT_ERR                  (HI_S32)(0x8055000C)
#define HI_ERR_FDMNG_BUFF_DEINIT_ERR                (HI_S32)(0x8055000D)
#define HI_ERR_FDMNG_START_ERR                      (HI_S32)(0x80550011)
#define HI_ERR_FDMNG_STOP_ERR                       (HI_S32)(0x80550012)
/* Define PQ Error Code */
#define HI_ERR_PQ_NOT_INIT                          (HI_S32)(0x80560001)
#define HI_ERR_PQ_DEV_OPEN_ERR                      (HI_S32)(0x80560002)
#define HI_ERR_PQ_DEV_CLOSE_ERR                     (HI_S32)(0x80560003)
#define HI_ERR_PQ_INVALID_PARA                      (HI_S32)(0x80560004)
#define HI_ERR_PQ_NULL_PTR                          (HI_S32)(0x80560005)
#define HI_ERR_PQ_NOT_SUPPORT                       (HI_S32)(0x80560006)
#define HI_ERR_PQ_BIN_PATH_LEN_OVERFLOW             (HI_S32)(0x80560007)
#define HI_ERR_PQ_BIN_PATH_INVALID                  (HI_S32)(0x80560008)
#define HI_ERR_PQ_DATA_NOT_READY                    (HI_S32)(0x80560009)
#define HI_ERR_PQ_CHECKSUM_ERR                      (HI_S32)(0x8056000A)
/* Define PDM Code */
#define HI_ERR_PDM_DEV_NOT_EXIST                    (HI_S32)(0x80570001)
#define HI_ERR_PDM_NOT_DEVICE                       (HI_S32)(0x80570002)
#define HI_ERR_PDM_DEV_OPEN_ERR                     (HI_S32)(0x80570003)
#define HI_ERR_PDM_DEV_NOT_INIT                     (HI_S32)(0x80570004)
#define HI_ERR_PDM_PTR_NULL                         (HI_S32)(0x80570005)
#define HI_ERR_PDM_PARAM_INVALID                    (HI_S32)(0x80570006)
#define HI_ERR_PDM_GET_MTDINFO_ERR                  (HI_S32)(0x80570007)
#define HI_ERR_PDM_MTD_OPEN                         (HI_S32)(0x80570008)
#define HI_ERR_PDM_MTD_CLOSE                        (HI_S32)(0x80570009)
#define HI_ERR_PDM_MTD_READ                         (HI_S32)(0x80570010)
#define HI_ERR_PDM_MTD_WRITE                        (HI_S32)(0x80570011)
#define HI_ERR_PDM_MTD_GETINFO                      (HI_S32)(0x80570012)
#define HI_ERR_PDM_MTD_ERASE                        (HI_S32)(0x80570013)
#define HI_ERR_PDM_MEM_ALLC                         (HI_S32)(0x80570014)
#define HI_ERR_PDM_INVALID_OPT                      (HI_S32)(0x80570015)
/* Define SPI Error Code */
#define HI_ERR_SPI_OPEN_ERR                         (HI_S32)(0x80580001)
#define HI_ERR_SPI_CLOSE_ERR                        (HI_S32)(0x80580002)
#define HI_ERR_SPI_NOT_INIT                         (HI_S32)(0x80580003)
#define HI_ERR_SPI_INVALID_PARA                     (HI_S32)(0x80580004)
#define HI_ERR_SPI_NULL_PTR                         (HI_S32)(0x80580005)
#define HI_ERR_SPI_COPY_DATA_ERR                    (HI_S32)(0x80580006)
#define HI_ERR_SPI_MALLOC_ERR                       (HI_S32)(0x80580007)
#define HI_ERR_SPI_WRITE_TIMEOUT                    (HI_S32)(0x80580008)
#define HI_ERR_SPI_READ_TIMEOUT                     (HI_S32)(0x80580009)
/* Define PANEL Error Code */
#define HI_ERR_PANEL_DEV_NOT_EXIST                  (HI_S32)(0x80590001)
#define HI_ERR_PANEL_DEV_NOT_INIT                   (HI_S32)(0x80590002)
#define HI_ERR_PANEL_DEV_OPEN_ERR                   (HI_S32)(0x80590003)
#define HI_ERR_PANEL_DEV_CLOSE_ERR                  (HI_S32)(0x80590004)
#define HI_ERR_PANEL_NULL_PTR                       (HI_S32)(0x80590005)
#define HI_ERR_PANEL_INVALID_PARA                   (HI_S32)(0x80590006)
#define HI_ERR_PANEL_NOT_SUPPORT                    (HI_S32)(0x80590007)
#define HI_ERR_PANEL_CMD_NOT_EXIST                  (HI_S32)(0x80590008)
#define HI_ERR_PANEL_ENABLE_ERR                     (HI_S32)(0x80590009)
#define HI_ERR_PANEL_DISABLE_ERR                    (HI_S32)(0x80590010)
#define HI_ERR_PANEL_PARAM_OUTRANGE                 (HI_S32)(0x80590011)
/* Define VPLUGIN Error Code */
#define HI_ERR_VPLUGIN_DEV_OPEN_ERR                 (HI_S32)(0x80600001)
#define HI_ERR_VPLUGIN_FIFO_FULL                    (HI_S32)(0x80600002)
#define HI_ERR_VPLUGIN_FIFO_EMPTY                   (HI_S32)(0x80600003)
#define HI_ERR_VPLUGIN_NOT_ENABLE                   (HI_S32)(0x80600004)
#define HI_ERR_VPLUGIN_INSTANCE_NOT_START           (HI_S32)(0x80600005)
#define HI_ERR_VPLUGIN_BUF_USING                    (HI_S32)(0x80600006)
#define HI_ERR_VPLUGIN_BUF_NOT_IN_QUEUE             (HI_S32)(0x80600007)
#define HI_ERR_VPLUGIN_BUF_ALREADY_IN_QUEUE         (HI_S32)(0x80600008)
#define HI_ERR_VPLUGIN_INVALID_ID                   (HI_S32)(0x80600009)
#define HI_ERR_VPLUGIN_NOT_SUPPORT_CHANGE_PARAM     (HI_S32)(0x8060000A)
#define HI_ERR_VPLUGIN_NOT_CREATE_INSTANCE          (HI_S32)(0x8060000B)
#define HI_ERR_VPLUGIN_PARAM_INVALID                (HI_S32)(0x8060000C)
#define HI_ERR_VPLUGIN_WORKING_CNT_IS_MAX           (HI_S32)(0x8060000D)

/** @} */  /*! <!-- Macro Definition end */

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */

#endif /* End of #ifndef __HI_UNF_MPI_ERRORCODE_H__ */

